<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>登陆</title>
<link rel="shortcut icon" href="<%=basePath%>Images/favicon.ico" />
<script type="text/javascript" src="<%=basePath%>plugins/jQuery/jQuery.js"></script>
<script type="text/javascript" src="<%=basePath%>basic/basic.js"></script>
<link rel="stylesheet" type="text/css" href="<%=basePath%>basic/basic.css" />

<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/login.css" />
<script type="text/javascript" src="<%=basePath%>JS/login.js"></script>

</head>

<body>
	<div class="frame">
		<jsp:include page="../head.jsp"></jsp:include>
		<div style="width:100%;height:400px;margin-top:10px;border:1px solid lightgray;">
			<div style="width:100%;height:20px;border-bottom:1px solid lightgray;">
				<table cellpadding="0" cellspacing="0" border="0" width=100% height="100%" style="font-size: 13px;">
					<tr>
						<td><img src="<%=basePath%>Images/home.png" />&nbsp;&nbsp;登陆</td>
						<td>&nbsp;</td>
						<td width="150px"><span class='login_enroll'>没有账号？直接注册</span></td>
					</tr>
				</table>
			</div>
			<div style="margin-left:auto;margin-right: auto;border:0px solid red;width:350px;margin-top: 20px;height:350px;">
				<form id='loginForm' action="loginCheck.html" method="post">
					<table cellpadding="0" cellspacing="0" border="0" width=100% height="100%">
						<tr>
							<td>用户名：</td>
							<td colspan="2"><input name="userName" class='login_input' maxlength="10"/></td>
						</tr>
						<tr>
							<td>密码：</td>
							<td colspan="2"><input name="password" type="password" class='login_input' maxlength="15" /></td>
						</tr>
						<tr>
							<td>验证码：</td>
							<td width="150px"><input name="authCode" class='login_input' maxlength="5"/></td>
							<td><img id='enrollAuthCodeImage' src="loginAuthCodeImage.html" /></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td colspan="2"><input class='login_input' type="button" value="提交" /></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td colspan="2" id="login_point" style='color:red;font-size:12px;'>
								<c:if test="${empty param.error }">&nbsp;</c:if>
								<c:if test="${param.error =='authCodeError'}">*验证码错误!!!</c:if>
								<c:if test="${param.error =='userErrorNotExist'}">*用户名不存在!!!</c:if>
								<c:if test="${param.error =='pwdError'}">*密码错误!!!</c:if>
								<c:if test="${param.error =='URLError'}">*链接错误！！！</c:if>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
